<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style type="text/css">
a{text-decoration:none;}
</style>
</head>
<script type="text/javascript">  
  var fulls = "left=0,screenX=0,top=0,screenY=0,scrollbars=1";    //定义弹出窗口的参数  
  if (window.screen) {  
     var ah = screen.availHeight - 30;  
     var aw = screen.availWidth - 10;  
     fulls += ",height=" + ah;  
     fulls += ",innerHeight=" + ah;  
     fulls += ",width=" + aw;  
     fulls += ",innerWidth=" + aw;  
     fulls += ",resizable"  
 } else {  
     fulls += ",resizable"; // 对于不支持screen属性的浏览器，可以手工进行最大化。 manually  
 }  
 function openNewWindow(url,name){  
  window.open(url,name,fulls);  
 }  
</script>  
<body>
	<a href="page?pagename=pic_edit">添加新图片</a>
	<table width="79%" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td>
				<center>
					<table border="1" height="450" width=81%>
						<s:iterator value="#request.picList">
							<tr>
								<%-- <td rowspan=4 width="150"><img width=150 height=115
									src="" /></td>getImgAction?id=<s:property value='id' />
								<td align=center style="color:red;width:250px;"><s:property
										value="name" /></td> --%>
								<td width="150"><a
									href="javascript:openNewWindow('getOneImg?id=<s:property value="id" />','xx')">查看
								</a></td>
							</tr>
							<tr>
								<td><div style="padding-left:30px;">名称：</div></td>
								<td style="color: red;" align="center"><s:property value="name" /></td>
							</tr>
							<tr>
								<td><div style="padding-left:30px;">编号：</div></td>
								<td><s:property value="id" /></td>
							</tr>
							<tr>
								<td><div style="padding-left:30px;">描述：</div><!-- <a href="">图片描述：</a> -->
								</td>
								<td><s:property value="ms" /></td>
							</tr>
						</s:iterator>
					</table>
				</center></td>
		</tr>
	</table>
	<center>
		总共有${allPage}页, 当前是第${offset}页 <a href="allPicAction?page=0"><font
			size="2" color="blue">首页</font> </a> <a
			href="javascript:if(${offset}>1)location='allPicAction?page=${page-1}'"><font
			size="2" color="red">上一页</font> </a> <a
			href="javascript:if(${offset}<${allPage})location='allPicAction?page=${page+1}'"><font
			size="2" color="red">下一页</font> </a> <a
			href="allPicAction?page=${allPage-1}"><font size="2" color="blue">末页</font>
		</a>
	</center>
</body>
</html>
